package cc.fs.androidcode.utils;

import android.widget.Toast;

import cc.fs.androidcode.App;

/**
 * Created by fostion on 2015/12/9.
 */
public class T {

    public static Toast toast;

    public static void toast(String msg){
        if(toast == null){
            toast = Toast.makeText(App.instance,msg,Toast.LENGTH_SHORT);
        } else {
            toast.setText(msg);
            toast.setDuration(Toast.LENGTH_SHORT);
        }

        toast.show();
    }

}
